package com.dynabook.ems.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName ems_production_records
 */
@TableName(value ="ems_production_records")
@Data
public class EmsProductionRecords implements Serializable {
    /**
     * 生产记录id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 工单编号
     */
    @TableField(value = "work_order_num")
    private String workOrderNum;

    /**
     * 成品型号
     */
    @TableField(value = "finished_product_model")
    private String finishedProductModel;

    /**
     * 旧品型号
     */
    @TableField(value = "old_name")
    private String oldName;

    /**
     * 成品入库数
     */
    @TableField(value = "finished_product_number")
    private Integer finishedProductNumber;

    /**
     * 旧品入库数
     */
    @TableField(value = "old_number")
    private Integer oldNumber;

    /**
     * 消耗数
     */
    @TableField(value = "consumer_number")
    private Integer consumerNumber;

    /**
     * 发起人
     */
    @TableField(value = "create_user_name")
    private String createUserName;

    /**
     * 插入时间
     */
    @TableField(value = "insert_time")
    private LocalDateTime insertTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 样机编号
     */
    @TableField(value = "fixed_no")
    private String fixedNo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}